package cc.wsyw126.java.jvm.testStatic;

/**
 * Created by Administrator on 2017/4/14.
 */
public class Test {
    Person person = new Person("Test");
    static{
        System.out.println("test static");
    }

    public Test() {
        System.out.println("test constructor");
    }

    public static void main(String[] args) {
        new MyClass();
    }

}

/*
在父类和子类中方法执行的顺序是一直的
test static
myclass static
person static
person Test
test constructor
person MyClass
myclass constructor
 */
